<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>天山折梅手</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/bui/assets/css/dpl-min.css" rel="stylesheet" type="text/css" />
<link href="/bui/assets/css/bui-min.css" rel="stylesheet" type="text/css" />
<link href="/bui/assets/css/main-min.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div class="header">
		<div class="dl-title">
			<span class="lp-title-port">天山折梅手</span>
		</div>
		<div class="dl-log">
			欢迎您，<span class="dl-log-user"></span>
			<a href="/userAccount/changeMinePass" title="修改密码" class="dl-log-quit">[修改密码]</a>
			<a href="/logout" title="退出系统" class="dl-log-quit">[退出]</a>
		</div>
	</div>
	<div class="content">
		<div class="dl-main-nav">
			<ul id="J_Nav" class="nav-list ks-clear"></ul>
		</div>
		<ul id="J_NavContent" class="dl-tab-conten"></ul>
	</div>
	<script type="text/javascript" src="/bui/assets/js/jquery-1.8.1.min.js"></script>
	<script type="text/javascript" src="/bui/assets/js/bui.js"></script>
	<script type="text/javascript" src="/bui/assets/js/config.js"></script>
	<script type="text/javascript" src="/js/logininfo.js"></script>
	<script>
		var config;
		var login = new LoginInfo({
			basePath : "/"
		});
		login.getLoginInfo(function(res) {
			if (res.code == 0) {
				$(".dl-log-user").text(res.data.userInfo.name);
				config = res.data.menu;
				var navMenu = res.data.navMenus;
				for ( var o in navMenu) {
					var selected = '';
					if (navMenu[o].selected) {
						selected = 'dl-selected';
					}
					var html = '<li class="nav-item '+selected+'"><div class="nav-item-inner '+navMenu[o].icoCls+'">'
							+ navMenu[o].name + '</div></li>';
					$("#J_Nav").append(html);
				}
				BUI.use('common/main', function() {
					new PageUtil.MainPage({
						modulesConfig : config
					});
				});
			} else {
				alert(res.msg)
			}
		});
	</script>
</body>
</html>
